package zh.dummy.netty.core.protocol;

import java.util.Map;

public class NettyMessage {
	
	private Header header;
	private Map<String,Object> body;
	
	public NettyMessage(){
		
	}
	
	public NettyMessage(Header header,Map<String,Object> body){
		this.header = header;
		this.body = body;
	}
	
	public Header getHeader() {
		return header;
	}
	public void setHeader(Header header) {
		this.header = header;
	}
	public Map<String,Object> getBody() {
		return body;
	}
	public void setBody(Map<String,Object> body) {
		this.body = body;
	}
	@Override
	public String toString() {
		return "NettyMessage [header=" + header + ", body=" + body + "]";
	}
	
	
}
